<?php

namespace App\Models;

use DB;
use Illuminate\Database\Eloquent\Model;

class Project extends Model
{
    /**
     * 与模型关联的数据表。
     *
     * @var string
     */
    protected $table = 'project';
    /**
     * 定义主键
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    // protected $fillable = [
    //     'title'
    // ];
    /**
     * 禁止批量赋值的字段
     *
     * @var array
     */
    protected $guarded = ['id','registtime','created_at','updated_at','deleted_at'];
    /**
     * 软删除应该被调整为日期的属性
     * [$dates description]
     * @var [type]
     */
    protected $dates=[
        'created_at', 'updated_at','deleted_at'
    ];
}
